
import java.util.List;
import java.util.concurrent.TimeUnit;

import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;

import org.junit.Test;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.firefox.internal.ProfilesIni;
import org.openqa.selenium.WebDriver;

public class sample {

	@Test
	public void sample() throws InterruptedException{
		
	
	//FirefoxDriver driver = new FirefoxDriver();
	ProfilesIni allProfiles = new ProfilesIni();
	System.setProperty("webdriver.firefox.profile","myprofile");
	String browserProfile = System.getProperty("webdriver.firefox.profile");
	FirefoxProfile profile = allProfiles.getProfile(browserProfile); 
	profile.setAcceptUntrustedCertificates(true);
	profile.setAssumeUntrustedCertificateIssuer(false);
	FirefoxDriver webdriver = new FirefoxDriver(profile);
	webdriver.get("https://www.google.com");
}
}